home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19950528-19950726
/
000324_news@columbia.edu_Wed Jul 12 14:06:40 1995.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA20582
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Wed, 12 Jul 1995 10:07:00 -0400
Received: by apakabar.cc.columbia.edu id AA14838
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Wed, 12 Jul 1995 10:06:55 -0400
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Read function
Date: 12 Jul 1995 14:06:40 GMT
Organization: Columbia University
Lines: 34
Message-Id: <3u0ktg$ef5@apakabar.cc.columbia.edu>
References: <3u0des$e0r@tst.hk.super.net>
Nntp-Posting-Host: watsun.cc.columbia.edu
Apparently-To: kermit.misc@watsun.cc.columbia.edu
In article <3u0des$e0r@tst.hk.super.net>,
John Carroll <jcarroll@hk.super.net> wrote:
> Is it possible to use a Kermit script (under MSDOS) to read an
> incoming value and assign it to a variable, or even write it to a file.
>
Yes. MS-DOS Kermit 3.14 has a set of string manipulation functions that,
with some ingenuity, might be used for this: \findex(), \fsubstring(), etc.
> I've been using a script to login to my Internet Provider, and request SLIP
> access. The Provider then gives me my ip_address etc. But it would be nice
> if I could write these values to a local configuration file for use with
> FTP, etc.
>
All you need is the manual, "Using MS-DOS Kermit", which shows you how to
write script programs, supplemented by the KERMIT.UPD file, which explains
the new string functions and related variables. You'll also find an
explanation of the same string functions in "Using C-Kermit".
Hints: After you tell the terminal server to enter SLIP mode, enter a loop
in which you INPUT a line at a time:
:LOOP
clear input
input 5 \10
At this point, you have a line of output in the \v(input) variable. Now you
are ready to parse the IP address or other needed information. If you find
it, exit the loop, otherwise go back and repeat. Programming 101.
> PS, does the latest MSDOS Kermit have FTP support?
>
No.
- Frank